// 具体处理者：经理
public class Manager implements Approver {
    private Approver nextApprover;

    @Override
    public void setNextApprover(Approver nextApprover) {
        this.nextApprover = nextApprover;
    }

    @Override
    public void handleRequest(int days) {
        if (days <= 7) {
            System.out.println("经理批准 " + days + " 天假期");
        } else if (nextApprover != null) {
            nextApprover.handleRequest(days);
        }
    }
}
